home *** CD-ROM | disk | FTP | other *** search
- //{{ GDR_DOCTYPE
- // NOTE - the GDR will add and remove lines here.
- // DO NOT EDIT what you see in these blocks of generated code!
- // { GDR_DOCTYPE_VERSION
- // VERSION=1.00
- // } GDR_DOCTYPE_VERSION
- // { GDR_DOCTYPE_HEAD
- DataStruct
- {
- info:
- documentType is "AzurSample";
- tabStop is 8;
-
- input:
- // } GDR_DOCTYPE_HEAD
- // { GDR_DOCTYPE_RECOGNITION
- area0_0_0_67_2 is "contains""************************ AZUR ************************\n************************FLIGHT CONFIRMATION************************";
- recognitionByContents is true;
- // } GDR_DOCTYPE_RECOGNITION
- // { GDR_DOCTYPE_PAGEBREAK
- pageBreakOnString_value is "\f";
- pageBreakOnString_includeLine is true;
- // } GDR_DOCTYPE_PAGEBREAK
- // { GDR_DOCTYPE_DOCBREAK
- docBreakOnString_value is " AZUR ";
- docBreakOnString_excludeLine is true;
- // } GDR_DOCTYPE_DOCBREAK
- // { GDR_DOCTYPE_BOTTOM
-
- }doctypeAzurSample;
- // } GDR_DOCTYPE_BOTTOM
- // { GDR_DOCTYPE_ONLYDOC
- if ( ___serial___onlyDocType___ ) return;
- // } GDR_DOCTYPE_ONLYDOC
- //}} GDR_DOCTYPE
- //{{ GDR_INFO
- // NOTE - the GDR will add and remove lines here.
- // DO NOT EDIT what you see in these blocks of generated code!
- // { GDR_INFO_TEXT
- // file="C:\\Program Files\\Esker\\Faxgate\\Adminmmc\\GDRTest\\FG701_Azur\\Azur0426.txt"
- // size=86
- // ************************ AZUR ************************
- // ************************FLIGHT CONFIRMATION************************
- // Clients: Traveltour
- // Address: 20 rue Carnot - 69003 LYON
- // Tel: 330
- // Fax: 331
- //
- // Reservation made on 4/26/2000
- // Reservation number: E3649
- // Agent ID: cblond/cblond@azur.com
- //
- // Please find here the confimartion for the following flight(s):
- //
- // FLIGHT: AZ 1541
- // Seats: 4
- // Class: business
- // Departure airport: Lyon
- // Local departure date/time: 4/29/2000 10.15 AM
- // Destination airport: London, Heathrow
- // Destination arrival date/time: 4/29/2000 10.25 AM
- //
- // FLIGHT: AZ 1478
- // Seats: 4
- // Class: business
- // Departure airport:London, Heathrow
- // Local departure date/time: 5/1/2000 6.30 PM
- // Destination airport: Lyon
- // Destination arrival date/time: 5/1/2000 7.40 PM
- //
- // ************************ AZUR ************************
- // ************************FLIGHT CONFIRMATION************************
- // Clients: Traveltour
- // Address: 20 rue Carnot - 69003 LYON
- // Tel: 440
- // Fax: 441
- //
- // Reservation made on 4/26/2000
- // Reservation number: E2348
- // Agent ID: emay/emay@azur.com
- //
- // Please find here the confimartion for the following flight(s):
- //
- // FLIGHT: AZ 6539
- // Seats: 2
- // Class: tourist
- // Departure airport: Paris, De Gaulle
- // Local departure date/time: 6/16/2000 8.40 AM
- // Destination airport: Montreal, Dorval
- // Destination arrival date/time: 6/16/2000 10.40 AM
- //
- // FLIGHT: AZ 7235
- // Seats: 2
- // Class: tourist
- // Departure airport:Montreal, Dorval
- // Local departure date/time: 7/5/2000 9.20 PM
- // Destination airport: Paris, De Gaulle
- // Destination arrival date/time: 8/5/2000 7.20 AM
- //
- // ************************ AZUR ************************
- // ************************FLIGHT CONFIRMATION************************
- // Clients: Smith
- // Address: 3 rue des Jolys - 69500 BRON
- // Tel: 550
- // Fax: 551
- //
- // Reservation made on 4/26/2000
- // Reservation number: I2349
- // Agent ID: emay/emay@azur.com
- //
- // Please find here the confimartion for the following flight(s):
- //
- // FLIGHT: AZ 2765
- // Seats: 2
- // Class: tourist
- // Departure airport: Paris, De Gaulle
- // Local departure date/time: 7/13/2000 12.00 PM
- // Destination airport: New York, JFK
- // Destination arrival date/time: 7/13/2000 13.15 PM
- //
- // FLIGHT: AZ 2965
- // Seats: 2
- // Class: tourist
- // Departure airport:New York, JFK
- // Local departure date/time: 7/16/2000 8.30 PM
- // Destination airport: Paris, De Gaulle
- // Destination arrival date/time: 7/17/2000 6.30 AM
- // } GDR_INFO_TEXT
- //}} GDR_INFO
- //{{ GDR_RULE
- // NOTE - the GDR will add and remove lines here.
- // DO NOT EDIT what you see in these blocks of generated code!
- // { GDR_RULE_VERSION
- // VERSION=1.00
- // } GDR_RULE_VERSION
- // { GDR_RULE_INCLUDE
- inline ".\\common.ilg";
- // } GDR_RULE_INCLUDE
- // { GDR_RULE_VARIABLE
- String RecipientType;
- String RecipientAddress;
- String FaxNumber;
-
- void SetDefaultValueIfNeeded()
- {
- if (RecipientType=="") RecipientType="SM";
- if (RecipientAddress=="") ;
- if (FaxNumber=="") ;
- }
- // } GDR_RULE_VARIABLE
- //}} GDR_RULE
- //{{ GDR_AREA
- // NOTE - the GDR will add and remove lines here.
- // DO NOT EDIT what you see in these blocks of generated code!
- // { GDR_AREA_VERSION
- // VERSION=1.00
- // } GDR_AREA_VERSION
- // { GDR_AREA_HEAD
- void GetArea0()
- {
- if ( FaxNumber != "" ) return;
- // } GDR_AREA_HEAD
- // { GDR_AREA_AREA
- String stream=getArea(0,5,5,3,1).getString();
-
- // } GDR_AREA_AREA
- // { GDR_AREA_EXTRACT
-
- // } GDR_AREA_EXTRACT
- // { GDR_AREA_CASE
-
- // } GDR_AREA_CASE
- // { GDR_AREA_STRIP
- stream.trim(BOTH);
- // } GDR_AREA_STRIP
- // { GDR_AREA_INCLUDE
-
- // } GDR_AREA_INCLUDE
- // { GDR_AREA_EXCLUDE
-
- // } GDR_AREA_EXCLUDE
- // { GDR_AREA_CONDITION
- if (true)
- {
- // } GDR_AREA_CONDITION
- // { GDR_AREA_ASSIGN
- FaxNumber=stream;
- // } GDR_AREA_ASSIGN
- // { GDR_AREA_BOTTOM
- }
- }
- // } GDR_AREA_BOTTOM
- //}} GDR_AREA
- //{{ GDR_AREA
- // NOTE - the GDR will add and remove lines here.
- // DO NOT EDIT what you see in these blocks of generated code!
- // { GDR_AREA_VERSION
- // VERSION=1.00
- // } GDR_AREA_VERSION
- // { GDR_AREA_HEAD
- void GetArea1()
- {
- if ( RecipientAddress != "" ) return;
- // } GDR_AREA_HEAD
- // { GDR_AREA_AREA
- String stream=getArea(0,0,9,54,1).getString();
-
- // } GDR_AREA_AREA
- // { GDR_AREA_EXTRACT
- {
- Integer iStart = stream.indexOf("/",true,true);
- if ( iStart < 0 ) iStart = stream.length();
- Integer iFrom = iStart;
- Integer iEnd = stream.length();
- stream = stream.substring(iStart,iEnd-iStart);
- }
- // } GDR_AREA_EXTRACT
- // { GDR_AREA_CASE
-
- // } GDR_AREA_CASE
- // { GDR_AREA_STRIP
- stream.trim(BOTH);
- // } GDR_AREA_STRIP
- // { GDR_AREA_INCLUDE
-
- // } GDR_AREA_INCLUDE
- // { GDR_AREA_EXCLUDE
-
- // } GDR_AREA_EXCLUDE
- // { GDR_AREA_CONDITION
- if (true)
- {
- // } GDR_AREA_CONDITION
- // { GDR_AREA_ASSIGN
- RecipientAddress=stream;
- // } GDR_AREA_ASSIGN
- // { GDR_AREA_BOTTOM
- }
- }
- // } GDR_AREA_BOTTOM
- //}} GDR_AREA
- //{{ GDR_RULE
- // NOTE - the GDR will add and remove lines here.
- // DO NOT EDIT what you see in these blocks of generated code!
- // { GDR_RULE_VALID_1
- void PostAreaValidation()
- {
- }
- // } GDR_RULE_VALID_1
- //}} GDR_RULE
- //{{ GDR_RULE
- // NOTE - the GDR will add and remove lines here.
- // DO NOT EDIT what you see in these blocks of generated code!
- // { GDR_RULE_VALID_2
- void PostRequestValidation()
- {
- }
- // } GDR_RULE_VALID_2
- //}} GDR_RULE
- //{{ GDR_RULE
- // NOTE - the GDR will add and remove lines here.
- // DO NOT EDIT what you see in these blocks of generated code!
- // { GDR_RULE_MAIN
- GetArea0();
- GetArea1();
- PostAreaValidation();
- SetDefaultValueIfNeeded();
- PostRequestValidation();
- // } GDR_RULE_MAIN
- //}} GDR_RULE
-